-
Notifications
You must be signed in to change notification settings - Fork 477
Remove support for bsconfig.json #8187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rescript
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request removes support for the deprecated bsconfig.json configuration file across the entire ReScript toolchain. Going forward, only rescript.json will be supported as the project configuration file.
Changes:
- Removed all fallback logic that checked for
bsconfig.jsonwhenrescript.jsonis not found - Updated error messages, documentation, and comments to reference only
rescript.json - Removed literal constants and variables referencing
bsconfig.jsonfrom the codebase
Reviewed changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/bin/main.ml | Updated error message to only mention rescript.json |
| tests/tests/src/test_literals.res | Removed bsconfig_json literal constant |
| tests/tests/src/test_literals.mjs | Removed bsconfig_json export |
| tests/build_tests/warn_legacy_config/input.js | Updated test assertion to match new error message |
| rewatch/tests/suite.sh | Added workaround to copy bsconfig.json to rescript.json for external dependency |
| rewatch/src/helpers.rs | Removed bsconfig.json check from config detection |
| rewatch/src/config.rs | Updated comments from bsconfig to rescript.json or generic config |
| rewatch/src/build/packages.rs | Simplified config reading to only check for rescript.json |
| rewatch/MonorepoSupport.md | Removed references to legacy bsconfig.json in documentation |
| rewatch/CompilerConfigurationSpec.md | Updated documentation to use generic "config" terminology |
| compiler/gentype/Paths.ml | Removed fallback to legacy config file |
| compiler/gentype/GenTypeConfig.ml | Removed legacy config file constant and fallback logic |
| compiler/frontend/ast_config.ml | Renamed functions from bs_config to config |
| compiler/ext/literals.ml | Removed bsconfig_json literal constant |
| compiler/ext/ext_path.ml | Updated find_config_dir to only search for rescript.json |
| analysis/src/Packages.ml | Removed bsconfig.json fallback logic |
| analysis/src/FindFiles.ml | Removed bsconfig.json fallback when reading dependency configs |
| analysis/reanalyze/src/ReanalyzeServer.ml | Updated comment to only mention rescript.json |
| analysis/reanalyze/src/Reanalyze.ml | Updated comment and renamed function from processBsconfig to processConfig |
| analysis/reanalyze/src/Paths.ml | Removed bsconfig constant and fallback logic |
| CHANGELOG.md | Added breaking change entry for removing bsconfig.json support |
| .github/workflows/ci.yml | Removed separate testrepo install step (now handled in test suite) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Removes support for the deprecated
bsconfig.json. Going forward, onlyrescript.jsonwill be supported.